﻿using Shop.Core.Share;
using Shop.Model.Dto.User;
using Shop.Model.View.Use;

namespace Shop.IServices
{
    public interface IAddressAppService: IAppService
    {
        /// <summary>
        /// 创建地址
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<bool> CreateAsync(AddressAddDto input);

        /// <summary>
        /// 更新地址
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<bool> UpdateAsync(AddressModifyDto input);

        /// <summary>
        /// 删除用户收货地址
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        Task<bool> DeleteAsync(long Id);

        /// <summary>
        /// 查询用户收货地址
        /// </summary>
        /// <returns></returns>
        Task<List<AddressVo>> ListAsync();
    }
}
